import request from "@/utils/request";

// 查询窗帘复杂加工模型列表
export function listModel(query) {
  return request({
    url: "/md/model/list",
    method: "get",
    params: query,
  });
}

// 查询窗帘复杂加工模型详细
export function getModel(mdComplexMachiningModelId) {
  return request({
    url: "/md/model/" + mdComplexMachiningModelId,
    method: "get",
  });
}

// 新增窗帘复杂加工模型
export function addModel(data) {
  return request({
    url: "/md/model",
    method: "post",
    data: data,
  });
}

// 修改窗帘复杂加工模型
export function updateModel(data) {
  return request({
    url: "/md/model",
    method: "put",
    data: data,
  });
}

// 删除窗帘复杂加工模型
export function delModel(mdComplexMachiningModelId) {
  return request({
    url: "/md/model/" + mdComplexMachiningModelId,
    method: "delete",
  });
}

// 查询窗帘复杂加工-物料维护列表
export function listFabric(query) {
  return request({
    url: "/md/complexMachiningModelFabric/list",
    method: "get",
    params: query,
  });
}

// 查询窗帘复杂加工-物料维护详细
export function getFabric(mdComplexMachiningModelFabricId) {
  return request({
    url: "/md/complexMachiningModelFabric/" + mdComplexMachiningModelFabricId,
    method: "get",
  });
}

// 新增窗帘复杂加工-物料维护
export function addFabric(data) {
  return request({
    url: "/md/complexMachiningModelFabric",
    method: "post",
    data: data,
  });
}

// 修改窗帘复杂加工-物料维护
export function updateFabric(data) {
  return request({
    url: "/md/complexMachiningModelFabric",
    method: "put",
    data: data,
  });
}

// 删除窗帘复杂加工-物料维护
export function delFabric(mdComplexMachiningModelFabricId) {
  return request({
    url: "/md/complexMachiningModelFabric/" + mdComplexMachiningModelFabricId,
    method: "delete",
  });
}
